﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Pahan.McuFusion.Common.Serialization
{
    /// <summary>
    /// Interface for reading the lists of <see cref="DeviceInfo"/>.
    /// </summary>
    /// <typeparam name="TDeviceInfo">The type of device info.</typeparam>
    public interface IDeviceInfoListReader<TDeviceInfo> where TDeviceInfo : DeviceInfo
    {
        IEnumerable<TDeviceInfo> ReadList(String filename);

        IEnumerable<TDeviceInfo> ReadList(Stream input);
    }
}
